package com.ericsson.enap.modules.ebmLog.entity.vgc.amf;

import com.ericsson.enap.modules.ebmLog.entity.vgc.Dimension;
import lombok.Data;

import java.util.Objects;

/**
 * @description:
 * @author: wangjingshi
 * @create: 2021-11-17 16:05
 */
@Data
public class Deregistration extends Dimension {

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Deregistration t = (Deregistration) o;
        return cause_code.equals(t.cause_code) && sub_cause_code.equals(t.sub_cause_code) &&
                deregistration_trigger.equals(t.deregistration_trigger) && k_key.equals(t.k_key);
    }


    @Override
    public int hashCode() {
        return Objects.hash(cause_code, sub_cause_code, deregistration_trigger, k_key);
    }

}
